import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        double[] x = new double[n];
        double sum = 0;
        for(int i = 0; i < n; i++) {
            x[i] = in.nextDouble();
            sum += x[i];
        }
        double average = sum / n;
        int count = 0;
        for(int i = 0; i < n; i++) {
            if(x[i] > average) {
                count++;
            }
        }
        System.out.printf("%.2f ", average);
        System.out.println(count);
    }
}